<template>
    <div>
      <h1>学生查找</h1>
      <input type="text" v-model="studentId" placeholder="请输入学号">
      <button @click="searchStudent">查找</button>
      <p v-if="studentInfo">{{ studentInfo }}</p>
    </div>
  </template>
  
  <script>
  export default {
    data() {
      return {
        studentId: '',
        studentInfo: ''
      };
    },
    methods: {
      searchStudent() {
        // 根据学号查找学生信息的逻辑
        this.studentInfo = `学号为${this.studentId}的学生信息：...`;
      }
    }
  };
  </script>